import $http from "@/plugs/axios";

export const login = (data) => {
  return $http.post("api/open/login",data);
};

export const getRouterList = () => {
  return $http.get("mock/list");
};

export const getCurUser = () => {
  return $http.get("api/user/current");
};
export const getRouterList1 = (id:number) => {
  return $http.get("api/menu/"+id);
};

export const getyzm = (id:number) => {
  return $http.get("api/menu/"+id);
};
